package r2d2.robot;

import lejos.nxt.Button;
import lejos.nxt.ButtonListener;

public class RobotUtility {

	public static void die() {
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
		}
		Button.ENTER.addButtonListener(new ButtonListener() {
			public void buttonPressed(Button b) {
				System.out.println("Terminate");
			}

			public void buttonReleased(Button b) {
				System.exit(0);
			}
		});
	}

}
